package net.huashitong.Project.util;

import net.huashitong.Project.responseModel.NodeEffecModel;

import java.util.Comparator;

public class EffecComparator implements Comparator<NodeEffecModel>{
    @Override
    public int compare(NodeEffecModel o1, NodeEffecModel o2) {
        if(o1.getPercent()>o2.getPercent()){
            return -1;
        }else if(o1.getPercent()<o2.getPercent()){
            return 1;
        }else{
            return 0;
        }
    }
}
